package com.jaws.demo.configuration;

import lombok.Data;
import org.quartz.Job;
import org.springframework.boot.context.properties.ConfigurationProperties;

import java.util.ArrayList;
import java.util.List;

@ConfigurationProperties(prefix = QuartzConfigProperties.JOB_PREFIX)
@Data
public class QuartzConfigProperties {

	public static final String JOB_PREFIX = "jaws.client.job";

	private List<QuartzJob> jobs = new ArrayList<>();

	@Data
	public static class QuartzJob {
		
		private String name;

		private String cronExpression;

		private Class<Job> jobClass;
	}
}
